package com.finger.crowd.service.api;

import com.finger.crowd.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminService {
    //保存管理员
    public void saveAdmin(Admin admin);

    public List<Admin> getAllAdmin();

    public Admin queryAdminById(int id);

    Admin getAdminByLoginAccount(String loginAcct, String password);

    PageInfo<Admin> getPageInfo(String keyword, Integer pageNum, Integer pageSize);

    void removeAdmin(Integer id);

    boolean queryAdminByLoginAcct(String loginAcct);

    void updateAdmin(Admin admin);

    void deleteOldRelationship(Integer adminId);

    void insertNewRelationship(Integer adminId, List<Integer> roleIdList);

    Admin getAdminByLoginAcct(String loginAcct);
}
